From ee7e9c886a85ae90845c20176ccc8da8ad831522 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 4 May 1993 16:40:24 +0000 Subject: [PATCH] (vc-dired-prefix-map): New keymap. Use it in minor-mode-map-alist for vc-dired-mode. --- lisp/vc.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/vc.el b/lisp/vc.el index 2e0fa62eac0..3bd5cda97a5 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -809,14 +809,18 @@ the variable vc-header-alist" ;; The VC directory submode. Coopt Dired for this. ;; All VC commands get mapped into logical equivalents. +(defvar vc-dired-prefix-map (make-sparse-keymap)) +(define-key vc-dired-prefix-map "\C-xv" vc-prefix-map) + (or (assq 'vc-dired-mode minor-mode-map-alist) (setq minor-mode-map-alist - (cons 'vc-dired-mode minor-mode-map-alist))) + (cons '(vc-dired-mode vc-dired-prefix-map) + minor-mode-map-alist))) (defun vc-dired-mode () "The augmented Dired minor mode used in VC directory buffers. All Dired commands operate normally. Users currently locking listed files -are listed at the left-hand side of the buffer, following the Dired mark area. +are listed in place of the file's owner and group. Keystrokes bound to VC commands will execute as though they had been called on a buffer attached to the file named in the current Dired buffer line." (setq vc-dired-mode t) -- 2.30.2